package com.icebartech.base.modules.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.icebartech.base.modules.user.model.AppPermission;
import com.icebartech.core.modules.BaseMapper;

public interface AppPermissionMapper extends BaseMapper{
    
    Long getAppPermissionIdByMeunId(@Param("resourceId")Long meunId);
    
    /**
     * 根据父级id和权限类型获取对应的权限项
     * @param parentId
     * @param permissionType
     * @return
     */
    List<AppPermission> getAppPermissionByParentId(@Param("parentId")Long parentId, @Param("permissionType") String permissionType, @Param("permissionIds") List<Long> permissionIds);
    
}